<html><head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
    <meta name="author" content="Flux User" >
    <meta name="description" content="My Website" >
    <meta name="keywords" content="Flux, Mac" >
    <title>My Webpage</title>
<script src="http://code.jquery.com/jquery-1.8.2.js"></script>
<link rel="stylesheet" href="stockview.css" />
</head>
<script type="text/javascript">
</script>


<script type="text/javascript">
var stocks=[['600218','全柴动力','1.00%'],['600218','全柴动力','1.00%']];
function createTopView(stocks){
  var div = $("<div style='background-color:#F7F4F0;'><p>KDJ金叉<a href='www.baidu.com'>查看更多</a></p></div>")
  var tablestr="<table>";
  for(var i=0; i<stocks.length; i++){
    tablestr += "<tr>";
    for(var j=0; j<stocks[i].length; j++){
      tablestr += "<td>" + stocks[i][j] + "</td>";
    }
    tablestr += "</tr>";
  }
  tablestr += "</table>";
  var table = $(tablestr);
  div.append(table);
  var li = $("<li></li>");
  li.append(div);
  $(".stockview ul").append(li);
}
$(document).ready(function(){
createTopView(stocks);
});
</script>

<body style="" >
 
<div class="menu">
  <ul id="totallabel">
    <li><a href="sh.html">沪市</a></li>
    <li><a href="sz.html">深市</a></li>
    <li><a href="sz300.html">创业板</a></li>
  </ul>
  <div id="search-div">
    <input id="search-input" style="width=200px"/>
    <ul id="search-ul" style="position:absolute;border:1px #000 solid;margin:0px;padding:10;width:100px;list-style:none"></ul>
  </div>
</div>

<div class="stockview" style="margin-top:20px">
<ul>
</ul>
</div>
</body></html>
